package com.jims.master.modules.utils;

import com.jims.master.common.utils.SpringContextHolder;
import com.jims.master.modules.oper.dao.ClinicItemDictDao;
import com.jims.master.modules.oper.entity.ClinicItemDict;

/**
 * Created by JIMS on 2017-05-11.
 */
public class ClinicItemUtils {
    private static ClinicItemDictDao clinicItemDictDao = SpringContextHolder.getBean(ClinicItemDictDao.class);

    /**
     * 根据id对诊疗项目翻译
     * @param id
     * @return
     */
    public static String getClinicName(String id){
        ClinicItemDict clinicItemDict =  clinicItemDictDao.getName(id);
        return clinicItemDict!=null?clinicItemDict.getItemName():"";
    }
}
